home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / fightingschool.swf / scripts / frame_147 / PlaceObject2_129_50 / CLIPACTIONRECORD onClipEvent(keyDown).as < prev    next >
Text File  |  2006-06-09  |  564b  |  23 lines

  1. onClipEvent(keyDown){
  2.    if(_root.PAUSE == false)
  3.    {
  4.       if(Key.isDown(Key.SPACE))
  5.       {
  6.          if(this.hitTest(_root.b1.plyr1.hit))
  7.          {
  8.             _root.b1.HITact += 1;
  9.             hp -= _root.ATpow;
  10.             _root.sfpunch.start();
  11.             ACTION = false;
  12.             this.char.gotoAndPlay("onhit");
  13.             if(0 >= hp or _root.b1.HITcnt == 2)
  14.             {
  15.                ACTION = false;
  16.                this.tact.ACTION = true;
  17.                this.char.gotoAndPlay("fly");
  18.             }
  19.          }
  20.       }
  21.    }
  22. }
  23.